package com.jltx.xq.simplewatch.db;

import android.net.Uri;

/**
 * @author jltxseo
 *         Created by junlintianxia on 2017/08/23.
 */

public class SimpleWatchContract {
    public static final String AUTHORITY = "com.jltx.xq.simplewatch";
    public static final Uri AUTHORITY_URI = Uri.parse("content://" + AUTHORITY);

    public static final String BASE_NEWS_RECORD_PATH = "newsrecord";
    //数据库 表名
    public static final String TABLE_NEWS_RECORD_NAME = "newsrecord";
    public static final Uri CONTENT_NEWS_RECORD_URI = Uri.withAppendedPath(AUTHORITY_URI, BASE_NEWS_RECORD_PATH);

    public static class NewsRecordColumns{
        public static final String ID = "id";
        public static final String CHANNEL_CODE = "channel";
        public static final String DATA = "data";
        public static final String PAGE = "page";
        public static final String TIME = "time";
    }


    public static final String BASE_NEWS_STATE_PATH = "newsstate";
    //数据库 表名
    public static final String TABLE_NEWS_STATE_NAME = "newsstate";
    public static final Uri CONTENT_NEWS_STATE_URI = Uri.withAppendedPath(AUTHORITY_URI, BASE_NEWS_STATE_PATH);

    public static class NewsStateColumns{

        public static final String KEY = "key";
        public static final String CHANNEL = "channel";
        public static final String IS_READ = "is_read";
        public static final String IS_DELETE="is_del";

    }
}
